const path = require('path')
// const CompressionWebpackPlugin = require("compression-webpack-plugin")
//匹配此 {RegExp} 的资源
// const productionGzipExtensions = /\.(js|css)(\?.*)?$/i
module.exports = {
    productionSourceMap:false,
    lintOnSave: false,
    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'less',
            patterns: [
                path.resolve(__dirname, './src/assets/less/public.less')
            ]
        },
    },
    devServer: {
        proxy: {
            '/api': {
                // target: 'http://192.168.3.43:8080/admin-domain/',
                    target: 'http://dc.test.fariso.top/system-domain/',
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    },
}
